package com.billionsfinance.hessian.controller;

import com.billionsfinance.hessian.service.AddService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @fileName: HelloController.java
 * @author: WeiHui.Zhang
 * @date: 2016-08-04  15:02
 * @version: v1.0.0
 */
@RestController
public class HelloController {

    @Autowired
    private AddService addService;

    @RequestMapping("/test")
    public Object test() {
        long add = addService.add(4L, 5L);
        System.out.println("The result is " + add);
        return add;
    }
}
